package com.cz.run.beans.mysql;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户推广明细表
 * </p>
 *
 * @author CAIYJ
 * @since 2018-05-23
 */
@TableName("user_referral_detail")
public class UserReferralDetail extends Model<UserReferralDetail> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("user_id")
    private Integer userId;
    /**
     * 上1级推广员用户编号
     */
    @TableField("referral1_uid")
    private Integer referral1Uid;
    /**
     * 上2级推广员用户编号 
     */
    @TableField("referral2_uid")
    private Integer referral2Uid;
    /**
     * 注册时间
     */
    @TableField("regist_date")
    private Date registDate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getReferral1Uid() {
        return referral1Uid;
    }

    public void setReferral1Uid(Integer referral1Uid) {
        this.referral1Uid = referral1Uid;
    }

    public Integer getReferral2Uid() {
        return referral2Uid;
    }

    public void setReferral2Uid(Integer referral2Uid) {
        this.referral2Uid = referral2Uid;
    }

    public Date getRegistDate() {
        return registDate;
    }

    public void setRegistDate(Date registDate) {
        this.registDate = registDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserReferralDetail{" +
        ", id=" + id +
        ", userId=" + userId +
        ", referral1Uid=" + referral1Uid +
        ", referral2Uid=" + referral2Uid +
        ", registDate=" + registDate +
        "}";
    }
}
